package com.itheima.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.reggie.mapper.DishFlavorMapper;
import com.itheima.reggie.pojo.DishFlavor;
import com.itheima.reggie.service.DishFlavorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DishFlavorServiceImpl extends ServiceImpl<DishFlavorMapper, DishFlavor> implements DishFlavorService {

    @Autowired
    DishFlavorMapper dishFlavorMapper;

    /**
     * 根据菜品id查询菜品口味
     * @param dishId
     * @return
     */
    @Override
    public List<DishFlavor> queryDishFlavorByDishId(Long dishId) {
        return dishFlavorMapper.queryDishFlavorByDishId(dishId);
    }
}
